<template>
  <ul>
    <li
      v-for='item in list'
      @click.self='$emit("click",item)'
    >
      {{item.text}}
      <mytree123
        v-on='$listeners'
        v-if='item.children&&item.children.length'
        :list='item.children'
      />
    </li>
  </ul>
</template>
<script>
// @ is an alias to /src
export default {
  props: ["list"],
  name: "mytree123",
  data() {
    return {};
  },
  components: {},
};
</script>
<style lang="less">
</style>